function(product_dir str newstr)
  if ("x${str}" STREQUAL "xascend610")
    set(${newstr} "Ascend610" PARENT_SCOPE)
  elseif("x${str}" STREQUAL "xascend910")
    set(${newstr} "Ascend910A" PARENT_SCOPE)
  elseif("x${str}" STREQUAL "xascend310")
    set(${newstr} "Ascend310" PARENT_SCOPE)
  elseif("x${str}" STREQUAL "xascend310p")
    set(${newstr} "Ascend310P1" PARENT_SCOPE)
  elseif("x${str}" STREQUAL "xascend920")
    set(${newstr} "Ascend920A" PARENT_SCOPE)
  elseif("x${str}" STREQUAL "xascend910b")
    set(${newstr} "Ascend910B1" PARENT_SCOPE)
  else()
    string(SUBSTRING ${str} 0 1 _headlower)
    string(SUBSTRING ${str} 1 -1 _leftstr)
    string(TOUPPER ${_headlower} _headupper)
    set(${newstr} "${_headupper}${_leftstr}" PARENT_SCOPE)
  endif()
endfunction()
